package com.darknight.ftp.util;

/**
 * Created by DarKnight on 2017/7/11.
 */
public class StringUtils {
    public static boolean isNotBlank(CharSequence cs) {
        return org.apache.commons.lang3.StringUtils.isNotBlank(cs);
    }

    public static boolean containsIgnoreCase(CharSequence str, CharSequence searchStr) {
        return org.apache.commons.lang3.StringUtils.containsIgnoreCase(str, searchStr);
    }

    public static String[] split(String str, String separatorChars) {
        return org.apache.commons.lang3.StringUtils.split(str, separatorChars);
    }

    public static String newStringIso8859_1(final byte[] bytes) {
        return org.apache.commons.codec.binary.StringUtils.newStringIso8859_1(bytes);
    }

    public static byte[] getBytesUtf8(final String string) {
        return org.apache.commons.codec.binary.StringUtils.getBytesUtf8(string);
    }
}
